package com.pai4j.aigc.repository.dao;
import com.pai4j.aigc.repository.entity.PlantUmlEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface IPlantUmlDAO extends JpaSpecificationExecutor<PlantUmlEntity>, JpaRepository<PlantUmlEntity, Long> {

    
    /**
     * 查询指定用户的所有PlantUML
     * 
     * @param createBy 创建者
     * @return PlantUML列表
     */
    List<PlantUmlEntity> findByCreateByOrderByCreateDateDesc(String createBy);
}
